home *** CD-ROM | disk | FTP | other *** search
/ The Macintosh Demo Applications CD / Apple-MacintoshDemoApplicationsCD-1.0-1992.bin / More Information / GQL V3.0 / Open ME! - USA Sales / Open ME! - USA Sales.rsrc / gQRY_5280_Sales-central < prev    next >
Text File  |  1992-01-27  |  2KB  |  123 lines

  1. 00012200 0
  2. 88020002 8
  3. customer
  4. 80012201 1
  5. 80012202 0
  6. 88022203 8
  7. customer
  8. __][)(__
  9. 00012200 1
  10. 88020002 5
  11. order
  12. 80012201 1
  13. 80012202 0
  14. 88022203 6
  15. orders
  16. __][)(__
  17. 00012200 2
  18. 88020002 6
  19. placed
  20. 80012201 9
  21. 80012202 0
  22. 88022203 6
  23. placed
  24. __][)(__
  25. 00012300 3
  26. 80010001 0
  27. 88020002 4
  28. City
  29. 88022301 8
  30. customer
  31. 88022302 9
  32. cust_city
  33. 80012303 0
  34. __][)(__
  35. 00012300 4
  36. 80010001 1
  37. 88020002 6
  38. Amount
  39. 88022301 6
  40. orders
  41. 88022302 A
  42. ord_amount
  43. 80012303 0
  44. __][)(__
  45. 00012300 5
  46. 80010001 0
  47. 88020002 5
  48. State
  49. 88022301 8
  50. customer
  51. 88022302 A
  52. cust_state
  53. 80012303 0
  54. __][)(__
  55. 00010800 6
  56. 88020002 D
  57. Sales-central
  58. 80010801 0
  59. 80010802 0
  60. 88020803 FC
  61. select customer.cust_city, AVG (orders.ord_amount) from customer, orders where ((customer.cust_state IN ('ND','SD','MN','WI','NE','IA','IL','KS','MO','OK','AR','TX','LA'))) and customer.cust_num = orders.cust_nr group by customer.cust_city order by 1 ;
  62. __][)(__
  63. 00010900 7
  64. 80010001 6
  65. 80010901 0
  66. __][)(__
  67. 00010900 8
  68. 80010001 6
  69. 80010901 1
  70. __][)(__
  71. 00010900 9
  72. 80010001 6
  73. 80010901 2
  74. __][)(__
  75. 00010A00 A
  76. 80010001 6
  77. 80010A01 7
  78. 80010A02 3
  79. 80010A03 1
  80. __][)(__
  81. 00010A00 B
  82. 80010001 6
  83. 80010A01 8
  84. 80010A02 4
  85. 80010A03 2
  86. __][)(__
  87. 00010C00 C
  88. 80010001 6
  89. 80010C01 0
  90. 80010C02 1
  91. 80040C03 92 F5 9C 109
  92. __][)(__
  93. 00010D00 D
  94. 80010001 C
  95. 80010D01 7
  96. 80010D02 5
  97. 80010D03 9
  98. 88020D05 42
  99. ('ND','SD','MN','WI','NE','IA','IL','KS','MO','OK','AR','TX','LA')
  100. __][)(__
  101. 00010B00 E
  102. 80010001 6
  103. 80010B01 8
  104. 80010B02 9
  105. __][)(__
  106. 00010B00 F
  107. 80010001 6
  108. 80010B01 7
  109. 80010B02 9
  110. __][)(__
  111. 00010F00 10
  112. 80010001 6
  113. 80010F01 7
  114. 80010F02 3
  115. 80010F03 1
  116. __][)(__
  117. 00011000 11
  118. 80010001 6
  119. 80011001 7
  120. 80011002 3
  121. 80011003 0
  122. __][)(__
  123.